//Include("Mz");

/**
 * @fileoverview 取DOM元素
 * @author meizz
 * @version 20090423
 *
 * @name Mz.G
 * @namespace Mz.G
 * @param {HTMLElement/String} element DOM元素或者DOM元素对应的ID
 * @return {HTMLElement} 对应的DOM元素
 */
Mz.G = function(){
    var n = arguments.length, a = new Array(n);
    if (n == 0) {return null;}

    for(var i = n - 1; i > -1; i --) {
        var e = arguments[i];
        a[i] = null;

        if (typeof e == "object" && e) {
            if (e.tagName || e==window || e==document) {
                a[i] = e;
            } else if (e.dom) {
                a[i] = e.dom;
            }
        } else if (typeof e == "string" && (e = document.getElementById(e))) {
            a[i] = e;
        }
    }
    return a.length < 2 ? a[0] : a;
};